import threading

# 全局停止事件
stop_event = threading.Event()

# 设备状态
device_status = {
    "running": False,
    "current_operation": None,
    "progress": 0
}